<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>RequestParam请求参数</h3>
<form action="requestParams.do">
    <p>
        用户名：<input type="text" name="username"/>
    </p>
    <p>
        密 码：<input type="password" name="password"/>
    </p>
    <input type="submit" value="RequestParam请求参数">
</form>
<h3>@PathVariable注解</h3>
<form action="getPathVariable/10/zhangsan">
    <p>
        ID：<input type="text" name="userId"/>
    </p>
    <p>
        密 码：<input type="text" name="username"/>
    </p>
    <input type="submit" value="PathVariable请求参数">
</form>
<h3>RequestHeader请求头参数</h3>
<form action="getRequestHeaders.do">
    <p>
        用户名：<input type="text" name="username"/>
    </p>
    <p>
        密 码：<input type="password" name="password"/>
    </p>
    <input type="submit" value="RequestParam请求参数">
</form>
<h3>CookieValue获取Cookie</h3>
<form action="getCookie">
    <p>
        用户名：<input type="text" name="username"/>
    </p>
    <p>
        密 码：<input type="password" name="password"/>
    </p>
    <input type="submit" value="CookieValue请求参数">
</form>
</body>
</html>
